<link href="/static/js/bootstrap/css/bootstrap.min.css" rel="stylesheet" type="text/css" />
<link href="/static/js/bootstrap/css/bootstrap-theme.min.css" rel="stylesheet" type="text/css" />
<style type="text/css">
.form-control {
  width:25%;
}
</style>
<body>
<div class="page-header" style="margin: 20px 0 20px;">
	<span style="margin:0 0 20px 10px;">当前位置：<a href="?g=menu&r=adMenu/menulist">权限项列表</a> >> {if $pagetype == 1}添加权限项 {else}修改权限项{/if}</span>
</div>
<form class="form-horizontal" action="{$formaction}" method="post">
	<input type="hidden" name="menuid" value={$menuid} />
	<div class="form-group">
    	<label for="parentid" class="col-sm-2 control-label">所属权限项：</label>
	    <div class="col-sm-10">
	    	<select class="form-control" name="parentid" id="parentid">
               	{$menuSelectStr}
			</select>
	    </div>
    </div>
    <div class="form-group">
    	<label for="type" class="col-sm-2 control-label">权限项类型：</label>
	    <div class="col-sm-10">
	    	<select class="form-control" name="type" id="type">
               	<option value="1" {if $type =="1"}selected="selected"{/if}>菜单类型</option>
               	<option value="2" {if $type =="2"}selected="selected"{/if}>操作类型</option>
			</select>
	    </div>
    </div>
    <div class="form-group">
    	<label for="name" class="col-sm-2 control-label">权限项名称：</label>
	    <div class="col-sm-10">
	      <input type="text" class="form-control" id="name" name="name" placeholder="请输入权限项名称" value="{$name}">
	    </div>
    </div>
    <div class="form-group">
    	<label for="action_key" class="col-sm-2 control-label">权限KEY值：</label>
	    <div class="col-sm-10">
	      <input type="text" class="form-control" id="action_key" name="action_key" placeholder="请输入权限KEY值" value="{$action_key}">
	      KEY值规则：1、链接类型权限项，动作模块名action名method名，例如：动作为?r=menu/menulist，key：menu/menulist。2、数据类型权限项按开发定义动作验证key值填写。
	    </div>
    </div>
    <div class="form-group">
    	<label for="filepath" class="col-sm-2 control-label">权限动作：</label>
	    <div class="col-sm-10">
	      <input type="text" class="form-control" id="filepath" name="filepath" placeholder="请输入权限动作" value="{$filepath}">
	    </div>
    </div>
    <div class="form-group">
    	<label for="isshow" class="col-sm-2 control-label">是否显示：</label>
	    <div class="col-sm-10">
	    	<input name="isshow" value="Y" type="radio" {$showchecked} />显示
            <input name="isshow" value="N" type="radio" {$noshowchecked} />不显示
	    </div>
    </div>
	<div class="form-group">
		<div class="col-sm-offset-2 col-sm-10">
			<button type="submit" class="btn btn-default">提交</button>
		</div>
	</div>
</form>
</body>